<?php $this -> load->view('admin/inc/header');?>
<div id="maincontainer">
    <?php $this -> load->view('admin/inc/menu_admin');?>
    <div id="primary">
        <table border='1' class="ql_bg">
            <tr>
                <th>xóa</th>
                <th>id</th>
                <th>Tên Khóa học</th>
                <th>Nội dung</th>
                <th>Thời lượng</th>
                <th>Bắt đầu</th>
                <th>Môn</th>
                <th>Giảng viên</th>
                <th>Ngành</th>
            </tr>
            <?php
                          if(isset($khoahoc)){
                            foreach($khoahoc->result_array() as $rowkhoahoc):
                     ?>
                            <tr>
                                <td><a href='<?php echo site_url('admin/giangvien/delete/'.$rowkhoahoc['id']); ?>'><img src="<?php echo base_url();?>public/images/b_drop.png" /></a></td>
                                <td><?php echo $rowkhoahoc['id'];?></td>
                                <td><?php echo $rowkhoahoc['ten_khoahoc'];?></td>
                                <td><?php echo $rowkhoahoc['noidung'];?></td>
                                <td><?php echo $rowkhoahoc['thoi_luong'];?></td>
                                <td><?php echo $rowkhoahoc['time_start'];?></td>
                                <td><?php echo $rowkhoahoc['id_mon'];?></td>
                                <td><?php echo $rowkhoahoc['giang_vien'];?></td>
                                <td><?php echo $rowkhoahoc['id_nganh'];?></td>
                                
                            </tr>
                        <?php    endforeach;
                          }       
                     ?>
    
        </table>
    </div><!--End div#primary-->
</div><!--End div#maincontainer-->
<?php $this -> load->view('admin/inc/footer');?>